import request from '@/utils/request'

// 查询沥青生产数据列表
export function listAsphaltProductData(query) {
  return request({
    url: '/mes/bm/AsphaltProductData/list',
    method: 'get',
    params: query
  })
}

// 查询沥青生产数据详细
export function getAsphaltProductData(id) {
  return request({
    url: '/mes/bm/AsphaltProductData/' + id,
    method: 'get'
  })
}

// 新增沥青生产数据
export function addAsphaltProductData(data) {
  return request({
    url: '/mes/bm/AsphaltProductData',
    method: 'post',
    data: data
  })
}

// 修改沥青生产数据
export function updateAsphaltProductData(data) {
  return request({
    url: '/mes/bm/AsphaltProductData',
    method: 'put',
    data: data
  })
}

// 删除沥青生产数据
export function delAsphaltProductData(id) {
  return request({
    url: '/mes/bm/AsphaltProductData/' + id,
    method: 'delete'
  })
}
